/**
 * Wihidum - Efficient Broker Hierarchy for Publish Subscribe Middleware
 *
 * License      :   Apache License 2.0
 * Home Page    :   http://code.google.com/p/wihidum/
 * Mailing List :   wihidum@googlegroups.com
 */

package lk.mrt.cse.wihidum.storage;

import javax.persistence.*;

/**
 * Represents publication object
 */
@Entity
public class Publication
{

    private Long id;
    private String eventSourceURL;
    private String topic;
    private String body;

    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    public Long getId ()
    {
        return id;
    }

    public void setId (Long id)
    {
        this.id = id;
    }

    public String getEventSourceURL ()
    {
        return eventSourceURL;
    }

    public void setEventSourceURL (String eventSourceURL)
    {
        this.eventSourceURL = eventSourceURL;
    }

    public String getTopic ()
    {
        return topic;
    }

    public void setTopic (String topic)
    {
        this.topic = topic;
    }

    public String getBody ()
    {
        return body;
    }

    public void setBody (String body)
    {
        this.body = body;
    }
}
